﻿@model NOSDC.Models.LogOnModel

@section Title{
    @Html.CreatePageTitle("Log In")
}

@section MetaTags{
    @Html.CreateMetaDescription("Login to your account.")
}
@section Right{
    @{Html.RenderAction("GetUpcomingEvent", "Events");}
    @{Html.RenderAction("RecentJobs", "Jobs");}
}
<fieldset class="regFormBG">
    <h2 style="font-size: 22px; padding-bottom: 1px; color: #236B8E; margin: 0; padding: 0;">LOGIN</h2>
    <div style="font-size: 12px;">Don't have an account with NOSDC? Click <a href="Register">here</a> to create one.</div>
    <div style=" padding-top:10px;">
        @Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")
    </div>
    @using (Html.BeginForm())
    {
        <div>
            <div class="regFormLabel">
                @Html.LabelFor(m => m.UserName)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserName, new { @class = "regForm" })
                @Html.ValidationMessageFor(m => m.UserName)
            </div>
            <div class="regFormLabel">
                @Html.LabelFor(m => m.Password)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password, new { @class = "regForm" })
                @Html.ValidationMessageFor(m => m.Password)
            </div>
            <div class="regFormLabel">
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe)
            </div>
         
            <div class="buttons">
                <button type="submit" class="regular">Login</button> <div style="padding-left:10px; float:left; margin-top:10px; font-size:10px;">@Html.ActionLink("Forgot your password?", "Forgot", "Account")</div>
            </div>
        </div> 
        @Html.AntiForgeryToken()
    }
</fieldset>
<br />
@section JavaScript{
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
      <script type="text/javascript">
      $("#Home").addClass("selected");
      </script>
}